3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to perform standard operations on 3-by-3 and 4-by-4 matrices. Each routine performs some operation on one or more source matrices and returns a pointer to the destination matrix in the result parameter. Any of the source or destination matrices may be the same matrix. The source matrices are unchanged, unless one of them is also specified as the destination matrix.
You can use the Q3Matrix3x3_Copy function to get a copy of a 3-by-3 matrix.
TQ3Matrix3x3 *Q3Matrix3x3_Copy (
const TQ3Matrix3x3 *matrix3x3,
TQ3Matrix3x3 *result);
You can use the Q3Matrix4x4_Copy function to get a copy of a 4-by-4 matrix.
TQ3Matrix4x4 *Q3Matrix4x4_Copy (
const TQ3Matrix4x4 *matrix4x4,
TQ3Matrix4x4 *result);
You can use the Q3Matrix3x3_SetIdentity function to set a 3-by-3 matrix to the identity matrix.
TQ3Matrix3x3 *Q3Matrix3x3_SetIdentity (TQ3Matrix3x3 *matrix3x3);
You can use the Q3Matrix4x4_SetIdentity function to set a 4-by-4 matrix to the identity matrix.
TQ3Matrix4x4 *Q3Matrix4x4_SetIdentity (TQ3Matrix4x4 *matrix4x4);
You can use the Q3Matrix3x3_Transpose function to transpose a 3-by-3 matrix.
TQ3Matrix3x3 *Q3Matrix3x3_Transpose (
const TQ3Matrix3x3 *matrix3x3,
TQ3Matrix3x3 *result);
You can use the Q3Matrix4x4_Transpose function to transpose a 4-by-4 matrix.
TQ3Matrix4x4 *Q3Matrix4x4_Transpose (
const TQ3Matrix4x4 *matrix4x4,
TQ3Matrix4x4 *result);
You can use the Q3Matrix3x3_Invert function to invert a 3-by-3 matrix.
TQ3Matrix3x3 *Q3Matrix3x3_Invert (
const TQ3Matrix3x3 *matrix3x3,
TQ3Matrix3x3 *result);
You can use the Q3Matrix4x4_Invert function to invert a 4-by-4 matrix.
TQ3Matrix4x4 *Q3Matrix4x4_Invert (
const TQ3Matrix4x4 *matrix4x4,
TQ3Matrix4x4 *result);
You can use the Q3Matrix3x3_Adjoint function to adjoin a 3-by-3 matrix.
TQ3Matrix3x3 *Q3Matrix3x3_Adjoint (
const TQ3Matrix3x3 *matrix3x3,
TQ3Matrix3x3 *result);
You can use the Q3Matrix3x3_Multiply function to multiply two 3-by-3 matrices.
TQ3Matrix3x3 *Q3Matrix3x3_Multiply (
const TQ3Matrix3x3 *matrixA,
const TQ3Matrix3x3 *matrixB,
TQ3Matrix3x3 *result);
You can use the Q3Matrix4x4_Multiply function to multiply two 4-by-4 matrices.
TQ3Matrix4x4 *Q3Matrix4x4_Multiply (
const TQ3Matrix4x4 *matrixA,
const TQ3Matrix4x4 *matrixB,
TQ3Matrix4x4 *result);
You can use the Q3Matrix3x3_Determinant function to get the determinant of a 3-by-3 matrix.
float Q3Matrix3x3_Determinant (const TQ3Matrix3x3 *matrix3x3);
You can use the Q3Matrix4x4_Determinant function to get the determinant of a 4-by-4 matrix.
float Q3Matrix4x4_Determinant (const TQ3Matrix4x4 *matrix4x4);
Previous | QD3D Book | Overview | Chapter Contents | Next |